package com.icode.core.model.house;

import com.icode.core.model.AbstractEntity;

import javax.persistence.*;

/**
 * Created with IntelliJ IDEA.
 * User: SunKai
 * Date: 14-10-24
 * Time: 上午11:02
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name="house_info_house_type")
public class HouseInfoHouseType extends AbstractEntity {
    @ManyToOne
    @JoinColumn(name="house_info_id")
    private HouseInfo houseInfo;

    @Column(name="house_type")
    @Enumerated(EnumType.STRING)
    private HouseType houseType;

    public HouseInfoHouseType() {
    }

    public HouseInfoHouseType(HouseInfo houseInfo, HouseType houseType) {
        this.houseInfo = houseInfo;
        this.houseType = houseType;
    }
}
